<?php
header('Access-Control-Allow-Origin:*');
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::group(['prefix'=>'youdao','namespace'=>'mail'],function(){
	
	Route::post('pc','MailController@youDaoPc');

	Route::post('phone','MailController@youDaoPhone');
});


Route::group(['prefix'=>'thyroid','namespace'=>'mail'],function(){
	//send email to pc thyroid
	Route::post('pc','MailController@thyroid');

	Route::post('jj_pc','MailController@jjThyroid');
	//send email to phone thyroid
	Route::post('phone','MailController@phoneThyroid');

	Route::post('jj_phone','MailController@jjPhoneThyroid');
});

Route::group(['prefix'=>'breast','namespace'=>'mail'],function(){
	
	Route::post('pc','MailController@pcBreast');

	Route::post('pc-II','MailController@pcBreastII');

	Route::post('online','MailController@phoneBreastOnline');

	//send email to phone breast
	Route::post('phone','MailController@phoneBreast');
});

Route::group(['prefix'=>'activity','namespace'=>'mail'],function(){
	Route::post('activity','MailController@activity');

	Route::post('newActivity','MailController@newActivity');
});

Route::group(['prefix'=>'bmi','namespace'=>'mail'],function(){
	//send email to phone bmi
	Route::post('phone','MailController@phoneBmi');

	Route::post('pc-index','MailController@pcBmiIndex');

	Route::post('pc-route','MailController@pcBmiRoute');

	Route::post('pc-online','MailController@pcBmiOnline');

	Route::post('kuaisu',"MailController@phoneKuaisu");

	Route::post('new-phone','MailController@newPhone');
});
